{% extends 'ProjResManBundle::layout.html.twig' %}

{% block header_menu_login_href %}{% if auth.isAuth == false %}{{ header.menu.login }}{% else %}{{ header.menu.logout }}{% endif %}{% endblock %}
{% block header_menu_login_text %}{% if auth.isAuth == false %}{{ header.text.login }}{% else %}{{ header.text.logout }}{% endif %}{% endblock %}
{% block header_menu_login_user %}{% if auth.isAuth == true %}{{ auth.user }}{% endif %}{% endblock %}
{% block header_menu_login_message %}{% if auth.isAuth == true %}User:{% endif %}{% endblock %}
{% block content -%}

<div id="page_content">
    <div id="submenu">
            <div id="submenu_float1">
                <div id="submenu_float2">
                    <ul>
                        {% block submenu -%}
                        {% for item in content.submenu %}
                        <ul class="submenu_option">
                            <a href={{ item.href }}>
                            <li class="submenu_header">{{ item.title }}</li>
                            <li class="submenu_details">{{ item.title_desc }}</li>
                        </a>
                        </ul>
                        {% endfor %}
                        {% endblock %}
                    </ul>
                </div>
            </div>
        </div>
        
    <div id="container">
        {% block main_container %}
        {% endblock %}
    </div>
</div>
{% endblock %}